home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000240_fdc@sesame.cc.columbia.edu_Wed Aug 27 15:05:23 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
3KB
|
77 lines
Article: 14480 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news-not-for-mail
From: fdc@sesame.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: How to recover from a hangup?
Date: 27 Aug 2003 15:05:16 -0400
Organization: Columbia University
Lines: 60
Message-ID: <biivdc$t5d$1@sesame.cc.columbia.edu>
References: <uoppkvgocr6vgbptg62fm7osanrjhontk3@4ax.com>
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1062011116 28690 128.59.59.56 (27 Aug 2003 19:05:16 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 27 Aug 2003 19:05:16 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14480
In article <uoppkvgocr6vgbptg62fm7osanrjhontk3@4ax.com>,
dgk <sonicechoesWithNoSpam@hotmail.com> wrote:
: I have an app that uses some of the K95 provided scripts and answers
: calls and has a simple dialog. I have a problem that results in the
: Kermit dos box printing this line over and over:
:
: ?Connection on Conexant HCF V90 56K Data Fax PCI Modem is not open.
:
: The script is kicked off by this section of code from Dhostmdm.KSC
:
: ; Break out of loop if there is a nonrecoverable error, otherwise
: ; continue.
:
: while 1 {
: answer
: if > \v(dialstatus) 0 if < \v(dialstatus) 22 stop 1 Fatal modem error
: if = \v(dialstatus) 0 take MM3.ksc
: echo Type Ctrl-C to exit... ; Give user a chance to cancel
: sleep 2
: }
:
: MM3.KSC just asks for a username and password, and then a menu option
: here:
:
: ASG \%T 0
: :GETCMD ; What does the user want to do anyway?
: OUTPUT \13\10Command:
: CLEAR INPUT
: INPUT 10 \13
: DEF \%C
: DEF \%Z \V(INPUT)
: DO STRIP {\%Z}
: IF = \FLENGTH(\%Z) 0 GOTO GETCMD
: ASG \%C \%N
: IF EQUAL {\%C} SND GOTO RECEIVE
: IF EQUAL {\%C} {RCV R} GOTO SEND
: IF EQUAL {\%C} BYE GOTO IFAIL
: IF EQUAL {\%C} {RCV M} GOTO SENDM
: OUTPUT \13\10REQUEST ERROR|\%C|
: INC \%T 1
: IF = \%T 4 GOTO IFAIL
: GOTO GETCMD
:
:
: I'll be the first person to admit that I don't know much of the Kermit
: language but the code works some of the time that a user hangs up.
: Othertimes I get that line repeating and have to restart Kermit.
:
: Is there some error checking I should be doing here to prevent the
: hangup from messing the modem up?
:
That's what it sounds like. Every command that could fail should be
checked. Your MM3.KSC file is a GOTO loop containing INPUTs and OUTPUTs.
These commands fail if the connection is lost, but your script doesn't
check for it, so loops forever, printing error messages. See the
tutorial:
http://www.columbia.edu/kermit/ckscripts.html#tut
- Frank